﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Day04Night
{
    public class Enemy
    {
        public List<IDamage> DamageObj
        {
            get;
            set;
        }
        public void Attack()
        {
            for (int i = 0; i < DamageObj.Count; i++)
            {
                Console.Write("敌人攻击！");
                DamageObj[i].Damage();
            }
        }
    }
}